general surfaces. Program GZOrder uses calculus to explicitly find vertex normals. If your calculus is a little rusty, do not worry too much about this. Feel free to skip to the next section.
If F(x, y) is the equation of a surface, a normal vector to the surface at point (x, y) is given by the equation's partial derivatives:
<¶F/¶x (x, y), ¶F/¶y (x, y), -1>
For example, the surface shown in Figure 16.15 has the following equation. The roles of the Y and Z coordinates are reversed to match the right-handed coordinate system used by the projection code.